<!-- NG-ZORRO -->

<div class="box">
  
  <nz-upload class="avatar-uploader" nzAction="http://192.168.3.31/fileUpload1" nzName="file" nzListType="picture-card"
    [nzShowUploadList]="false" [nzBeforeUpload]="beforeUpload" (nzChange)="handleChange($event)">
    <ng-container *ngIf="!avatarUrl">

      <div class="ant-upload-text">Upload</div>
    </ng-container>
    <img *ngIf="avatarUrl" [src]="avatarUrl" class="avatar">
  </nz-upload>
</div>